import role from './role'
// 对原来设计作了修改， roles 保存色,authorities保存授权,增加 checkRole 与v-role
const install = function(Vue) {
  Vue.directive('role', role)
}

if (window.Vue) {
  window['role'] = role
  Vue.use(install); // eslint-disable-line
}

role.install = install
export default role
